package flex.cc.consult.controller;

import flex.cc.core.support.BaseController;
import flex.cc.system.entity.DictCodeEntity;
import flex.cc.system.service.DictCodeService;
import flex.cc.wrapper.WrapMapper;
import flex.cc.wrapper.Wrapper;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wkangle
 * @className ConsultServiceController
 * @description 咨询类服务模块
 * @time 2022-02-11 13:31:30
 */
@SuppressWarnings("restriction")
@RestController
@RequestMapping(value = "/vehicleSvr/consultService/wechat")
public class ConsultServiceController extends BaseController {

    private static final Logger logger = LoggerFactory.getLogger(ConsultServiceController.class);

    @Autowired
    private DictCodeService dictCodeService;


    @GetMapping(value = "/queryConsultWorkWeiXin")
    @ApiOperation(httpMethod = "GET", value = "根据服务项目id查询咨询类卡券企业微信")
    public Wrapper<DictCodeEntity> queryConsultWorkWeiXin() {
        Map<String, String> params = new HashMap<>();
        params.put("code", "consult");
        DictCodeEntity couponFestivalTips = dictCodeService.queryConsultWorkWeiXin(params);
        return WrapMapper.ok(couponFestivalTips);
    }

}
